﻿@model ADShop.Models.Product

@{
    ViewBag.Title = "Create";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutPage_Admin.cshtml";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Product</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.IDStatus, "StatusProduct")
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDStatus", String.Empty)
            @Html.ValidationMessageFor(model => model.IDStatus)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDCategory, "Category")
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDCategory", String.Empty)
            @Html.ValidationMessageFor(model => model.IDCategory)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDBrand, "Brand")
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDBrand", String.Empty)
            @Html.ValidationMessageFor(model => model.IDBrand)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NameProduct)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NameProduct)
            @Html.ValidationMessageFor(model => model.NameProduct)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TrialDay)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TrialDay)
            @Html.ValidationMessageFor(model => model.TrialDay)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ListedPrice)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ListedPrice)
            @Html.ValidationMessageFor(model => model.ListedPrice)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PriceProduct)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PriceProduct)
            @Html.ValidationMessageFor(model => model.PriceProduct)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Rewards)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Rewards)
            @Html.ValidationMessageFor(model => model.Rewards)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ProductImage)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ProductImage)
            @Html.ValidationMessageFor(model => model.ProductImage)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <p>
            <input type="submit" value="Create" class="btn btn-green" />
        </p>
    </fieldset>
}

<div>
    <p>
        @Html.ActionLink("Bảng Danh Sách Sản Phẩm", "Index", null, new { @class = "label label-default" })
    </p>
</div>
